//多条件查询
function reload() {
	var industryId = $("#industry").val(),
		productCategoryId = $("#product_category").val(),
		productName = $("#textfield2").val();
	if(productName == '关键字') {
		productName = "";
	}
	
	var data_param = {
		industryId: industryId,
		productCategoryId: productCategoryId,
		productName: productName
	};
	
	$.ajax({
		type:"POST",
		url:"/mall/search",
		data:data_param,
		async:false,
		dataType:"json",
		success:function(data){
			
			//最新应用查询
			var zxyy = "";
			$("#zxyy").empty();
			$.each(data.mpVo4,function(index,p){
				/*if(index % 4 == 0){
					addStr += '<div class="layout fl">';
				}else if(index % 4 == 1){
					addStr += '<div class="layout fr">';
				}
			    else if(index % 4 == 2) {
					addStr += '<div class="layout fl mt20">';
				}else {
					addStr += '<div class="layout fr mt20">';
				}*/
				zxyy +='<div class="layout fl"><div class="pic fl mr20">'+
			            '<a href="/mall/cpxq/'+p.productId+'">'+
			                '<img src="'+p.productImg+'" width="75" height="75" />'+
			            '</a>'+
			            '</div>'+
			            '<dl class="fl">'+
			            '<dt><a href="/mall/cpxq/'+p.productId+'">'+p.productName+'</a></dt>'+
			            '<dd>'+
			                '<font class="red">报价：￥'+p.productPrice+'</font></dd>'+
			            '<dd>'+p.productBrief+'</dd>'+
			            '</dl>'+
			            '<div class="kt-btn"><a href="#" class="fr">购买</a>'+
			            '</div>'+
			            '<div class="cl"></div>'+
			            '</div>';
			})
			zxyy +='<div class="cl"></div>';
			$("#zxyy").append(zxyy);
			
			//云办公旗舰版套餐产品查询
			var yunqj = "";
			$("#yunqj").empty();
			$.each(data.mpVo1,function(index,mp1){
				yunqj +='<li>'+
			            '<div class="mod_appshow">'+
			            '<a href="/mall/gngs/'+mp1.productId+'" class="appmk">'+
			            '<img src="'+mp1.productImg+'">'+
			            '</a><a href="/mall/gngs/'+mp1.productId+'" class="app_name">'+mp1.productName+'</a>'+
			            '</div>'+
			            '</li>';
			})
			$("#yunqj").append(yunqj);
			
			//云办公商务版套餐产品查询
			var yunsw = "";
			$("#yunsw").empty();
			$.each(data.mpVo2,function(index,mp2){
				yunsw +='<li>'+
			            '<div class="mod_appshow">'+
			            '<a href="/mall/gngs/'+mp2.productId+'" class="appmk">'+
			            '<img src="'+mp2.productImg+'">'+
			            '</a><a href="/mall/gngs/'+mp2.productId+'" class="app_name">'+mp2.productName+'</a>'+
			            '</div>'+
			            '</li>';
			})
			$("#yunsw").append(yunsw);
			
			//云办公基础版套餐产品查询
			var yunjc = "";
			$("#yunjc").empty();
			$.each(data.mpVo3,function(index,mp3){
				yunjc +='<li>'+
			            '<div class="mod_appshow">'+
			            '<a href="/mall/gngs/'+mp3.productId+'" class="appmk">'+
			            '<img src="'+mp3.productImg+'">'+
			            '</a><a href="/mall/gngs/'+mp3.productId+'" class="app_name">'+mp3.productName+'</a>'+
			            '</div>'+
			            '</li>';
			})
			$("#yunjc").append(yunjc);
			
			//增值服务查询
			var zzfw = "";
			$("#zzfw").empty();
			$.each(data.mpVo4,function(index,mp4){
				
				zzfw +='<div class="layout fl"><div class="pic fl mr20">'+
			            '<a href="/mall/cpxq/'+mp4.productId+'">'+
			                '<img src="'+mp4.productImg+'" width="75" height="75" />'+
			            '</a>'+
			            '</div>'+
			            '<dl class="fl">'+
			            '<dt><a href="/mall/cpxq/'+mp4.productId+'">'+mp4.productName+'</a></dt>'+
			            '<dd>'+
			                '<font class="red">报价：￥'+mp4.productPrice+'</font></dd>'+
			            '<dd>'+mp4.productBrief+'</dd>'+
			            '</dl>'+
			            '<div class="kt-btn"><a href="#" class="fr">购买</a>'+
			            '</div>'+
			            '<div class="cl"></div>'+
			            '</div>';
			})
			zzfw +='<div class="cl"></div>';
			$("#zzfw").append(zzfw);
		}
	})
	
	return false;
}


